const express = require('express')
const router = express.Router()
const gaoxinController = require('../controllers/gaoxinController')


// 原始告警列表查询
router.get('/checkEvents', gaoxinController.getOriginList)

// 告警集列表查询
router.get('/alarmCollections', gaoxinController.getAlaramCollectionsList)

// 告警集详情-左侧
router.get('/collection_group/queryByCollectionId', gaoxinController.getAlarmCollectionsDetail)

// 告警集详情-右侧
router.get('/collection_group/queryByGroupId', gaoxinController.getAlarmCollectionsRecords)

// 告警集详情-右侧-特征要素
router.get('/featureElement/queryByKey', gaoxinController.getFeature)


// 获取关联规则配置列表
router.get('/collectionDurationConfig/list', gaoxinController.getRelatedSettings)

// 保存关联规则配置
router.put('/collectionDurationConfig/update', gaoxinController.anyTrue)

// 告警集人工核查
router.put('/alarmCollections/update/personCheckFlag/byCollectionId', gaoxinController.anyTrue)
// 原始告警人工核查
router.put('/featureElement/update/personCheckFlag/byId', gaoxinController.anyTrue)

// 关联确认
router.put('/featureElement/update/collectionMatchStatus/byId', gaoxinController.anyTrue)
// 事件打标
router.put('/alarmCollections/update/personCheckEventType/byCollectionId', gaoxinController.anyTrue)

module.exports = router 